package com.tsll.service.impl;

import com.tsll.dao.EbookCommentMapper;
import com.tsll.service.EbookComService;
import com.tsll.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class EbookComServiceImpl implements EbookComService {
    @Autowired
    private EbookCommentMapper ebookcommentMapper;
    //获取电子图书评论信息
    public Result getComById(Integer ebookId) {
        return new Result(200,"根据图书Id获取该图书评论成功",ebookcommentMapper.getComs(ebookId));
    }
}
